<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>React App</title>
  </head>

  <body>
    <script type="text/javascript">
      let obj = { a: 1, b: 2 };
      let obj2 = { ...obj, b: 3 };
      console.log(obj2);

      let obj3 = { a: { b: { c: 1 } } };
      console.log(obj3.a.b.c);

      const {
        a: {
          b: { c },
        },
      } = obj3;
      console.log(c);

      const {a:{b:{c:data}}} = obj3
      console.log(data);
    </script>
  </body>
</html>
